// pages/home/home.js
Page({

  data: {
    // banner的轮播图数组
    swiperArr: [
      "/images/banner/baner1.jpg",
      "/images/banner/baner2.jpg",
      "/images/banner/baner3.jpg",
      "/images/banner/baner4.jpg",
    ],
    // 咖啡的故事
    cardArr: [{
        src: "/images/home/card01.jpg",
        text: '给特别的你'
      },
      {
        src: "/images/home/card02.jpg",
        text: '我想对你说'
      },
      {
        src: "/images/home/card03.jpg",
        text: '勇敢爱'
      },
      {
        src: "/images/home/card04.jpg",
        text: '一个人的精彩'
      },
      {
        src: "/images/home/card05.jpg",
        text: '萌萌哒'
      },
      {
        src: "/images/home/card06.jpg",
        text: '友谊万岁'
      },
      {
        src: "/images/home/card07.jpg",
        text: '恋人未满'
      },
      {
        src: "/images/home/card08.jpg",
        text: '生日快乐'
      }
    ],
    // 新品展示
    newArr: [{
        imgSrc: "/images/home/newPro1.jpg",
        imgTxt: "卡布奇诺"
      },
      {
        imgSrc: "/images/home/newPro2.jpg",
        imgTxt: "白咖啡"
      },
      {
        imgSrc: "/images/home/newPro3.jpg",
        imgTxt: "摩卡咖啡"
      },
      {
        imgSrc: "/images/home/newPro4.jpg",
        imgTxt: "爱尔兰咖啡"
      },
      {
        imgSrc: "/images/home/newPro5.jpg",
        imgTxt: "甜品咖啡"
      },
      {
        imgSrc: "/images/home/newPro6.jpg",
        imgTxt: "意大利咖啡"
      },
      {
        imgSrc: "/images/home/newPro7.jpg",
        imgTxt: "拿铁咖啡"
      },
      {
        imgSrc: "/images/home/newPro8.jpg",
        imgTxt: "中式咖啡"
      }
    ]
  },
  goPage() {
    // 跳转页面
    // wx.navigateTo({
    //   // url: '/pages/aaa/aaa',
    //   // url: '/pages/kefu/kefu',
    //   success: (result) => {

    //   },
    //   fail: () => {},
    //   complete: () => {}
    // });

    // 怎么跳去tabbar页面
    wx.switchTab({
      url: '/pages/kefu/kefu',
      success: (result) => {

      },
      fail: () => {},
      complete: () => {}
    });

  }
})